from typing import Any

from pydantic import BaseModel, Field


class APIResponse(BaseModel):
    code: int = Field(200, description="状态码")
    info: str = Field("success", description="消息")
    data: Any = Field(None, description="响应数据")
